package com.ruoyi.rsikManage.MonitorPoint.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 通道离线记录对象 t_monitor_offline_statistics
 * 
 * @author sxygsj
 * @date 2024-12-25
 */
public class TMonitorOfflineStatistics extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增主键 */
    private Long id;

    /** 煤矿编码 */
    @Excel(name = "煤矿编码")
    private String unitCode;

    /** 监控点id */
    @Excel(name = "监控点id")
    private String monitorId;

    /** 掉线时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "掉线时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date offlineTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUnitCode(String unitCode) 
    {
        this.unitCode = unitCode;
    }

    public String getUnitCode() 
    {
        return unitCode;
    }
    public void setMonitorId(String monitorId) 
    {
        this.monitorId = monitorId;
    }

    public String getMonitorId() 
    {
        return monitorId;
    }
    public void setOfflineTime(Date offlineTime) 
    {
        this.offlineTime = offlineTime;
    }

    public Date getOfflineTime() 
    {
        return offlineTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("unitCode", getUnitCode())
            .append("monitorId", getMonitorId())
            .append("offlineTime", getOfflineTime())
            .toString();
    }
}
